home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_13815.txt < prev    next >
Text File  |  1990-10-02  |  7KB  |  319 lines

  1. -- card: 13815 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 5738
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   send cardOpened to background
  9. end openCard
  10.  
  11. on move
  12.   global direction,sDoorOpen,eDoorOpen,ladderHole,chase,blasting
  13.   if direction = "south" then
  14.     if sDoorOpen then
  15.       go to card id 33443
  16.       exit move
  17.     else
  18.       beep
  19.       put "The door is locked!" into field 3
  20.       exit move
  21.     end if
  22.   end if
  23.   if direction = "east" then
  24.     if eDoorOpen then
  25.       if ladderHole then
  26.         go to card id 30264
  27.         exit move
  28.       else
  29.         go to card id 6984
  30.         exit move
  31.       end if
  32.     else
  33.       beep
  34.       put "The door is locked!" into field 3
  35.       exit move
  36.     end if
  37.   end if
  38.   pass move
  39. end move
  40.  
  41.  
  42. on closeCard
  43.   set the cursor to 4
  44.   put "" into field 3
  45. end closeCard
  46.  
  47. on take
  48.   global object,carried
  49.   -- remember to update carried if you do not pass take
  50.   pass take
  51. end take
  52.  
  53. on drop
  54.   global object,dropRoom,carried
  55.   -- remember to update carried if you do not pass drop
  56.   pass drop
  57. end drop
  58.  
  59. on use
  60.   global object,carried,sDoorOpen,eDoorOpen
  61.   put last word of object into obj
  62.   delete first char of obj
  63.   delete last char of obj
  64.   if obj="key" then
  65.     put "Both doors are now unlocked and you may pass through." into field 3
  66.     put true into sDoorOpen
  67.     put true into eDoorOpen
  68.     exit use
  69.   end if
  70.   -- update carried if use results in loss of object
  71.   pass use
  72. end use
  73.  
  74.  
  75.  
  76.  
  77. -- part 16 (button)
  78. -- low flags: 80
  79. -- high flags: 2000
  80. -- rect: left=94 top=232 right=268 bottom=128
  81. -- title width / last selected line: 0
  82. -- icon id / first selected line: 9301 / 9301
  83. -- text alignment: 1
  84. -- font id: 0
  85. -- text size: 12
  86. -- style flags: 0
  87. -- line height: 16
  88. -- part name: knife
  89. ----- HyperTalk script -----
  90. on mouseUp
  91.   global takeFlag,examFlag,object,cardID
  92.   put the name of the target into object
  93.   if takeFlag = true
  94.   then send take to card id cardID
  95. else put "a knife" into field 3
  96. put false into examFlag
  97. end mouseUp
  98.  
  99.  
  100.  
  101. -- part 17 (button)
  102. -- low flags: 80
  103. -- high flags: 2000
  104. -- rect: left=94 top=197 right=233 bottom=128
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 1015 / 1015
  107. -- text alignment: 1
  108. -- font id: 0
  109. -- text size: 12
  110. -- style flags: 0
  111. -- line height: 16
  112. -- part name: nodule
  113. ----- HyperTalk script -----
  114. on mouseUp
  115.   global takeFlag,examFlag,object,cardID
  116.   put the name of the target into object
  117.   if takeFlag = true
  118.   then send take to card id cardID
  119. else put "a silicon sphere" into field 3
  120. put false into examFlag
  121. end mouseUp
  122.  
  123.  
  124.  
  125. -- part 18 (button)
  126. -- low flags: 80
  127. -- high flags: 2000
  128. -- rect: left=27 top=206 right=242 bottom=61
  129. -- title width / last selected line: 0
  130. -- icon id / first selected line: 14953 / 14953
  131. -- text alignment: 1
  132. -- font id: 0
  133. -- text size: 12
  134. -- style flags: 0
  135. -- line height: 16
  136. -- part name: ladder
  137. ----- HyperTalk script -----
  138. on mouseUp
  139.   global takeFlag,examFlag,object,cardID
  140.   put the name of the target into object
  141.   if takeFlag = true
  142.   then send take to card id cardID
  143. else put "a rope ladder" into field 3
  144. put false into examFlag
  145. end mouseUp
  146.  
  147.  
  148.  
  149. -- part 20 (button)
  150. -- low flags: 80
  151. -- high flags: 2000
  152. -- rect: left=72 top=111 right=147 bottom=106
  153. -- title width / last selected line: 0
  154. -- icon id / first selected line: 24317 / 24317
  155. -- text alignment: 1
  156. -- font id: 0
  157. -- text size: 12
  158. -- style flags: 0
  159. -- line height: 16
  160. -- part name: key
  161. ----- HyperTalk script -----
  162. on mouseUp
  163.   global takeFlag,examFlag,object,cardID
  164.   put the name of the target into object
  165.   if takeFlag = true
  166.   then send take to card id cardID
  167. else put "a key" into field 3
  168. put false into examFlag
  169. end mouseUp
  170.  
  171.  
  172.  
  173. -- part 21 (button)
  174. -- low flags: 80
  175. -- high flags: 2000
  176. -- rect: left=128 top=132 right=168 bottom=162
  177. -- title width / last selected line: 0
  178. -- icon id / first selected line: 7012 / 7012
  179. -- text alignment: 1
  180. -- font id: 0
  181. -- text size: 12
  182. -- style flags: 0
  183. -- line height: 16
  184. -- part name: gem
  185. ----- HyperTalk script -----
  186. on mouseUp
  187.   global takeFlag,examFlag,object,cardID
  188.   put the name of the target into object
  189.   if takeFlag = true
  190.   then send take to card id cardID
  191. else put "a glowing gem" into field 3
  192. put false into examFlag
  193. end mouseUp
  194.  
  195.  
  196.  
  197. -- part 22 (button)
  198. -- low flags: 80
  199. -- high flags: 2000
  200. -- rect: left=149 top=182 right=218 bottom=183
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 23078 / 23078
  203. -- text alignment: 1
  204. -- font id: 0
  205. -- text size: 12
  206. -- style flags: 0
  207. -- line height: 16
  208. -- part name: orb
  209. ----- HyperTalk script -----
  210. on mouseUp
  211.   global takeFlag,examFlag,object,cardID
  212.   put the name of the target into object
  213.   if takeFlag = true
  214.   then send take to card id cardID
  215. else put "a crystal orb" into field 3
  216. put false into examFlag
  217. end mouseUp
  218.  
  219.  
  220.  
  221. -- part 23 (button)
  222. -- low flags: 00
  223. -- high flags: 0000
  224. -- rect: left=27 top=93 right=148 bottom=59
  225. -- title width / last selected line: 0
  226. -- icon id / first selected line: 0 / 0
  227. -- text alignment: 1
  228. -- font id: 0
  229. -- text size: 12
  230. -- style flags: 0
  231. -- line height: 16
  232. -- part name: 
  233. ----- HyperTalk script -----
  234. on mouseUp
  235.   global examFlag,direction,cardID
  236.   if examFlag then
  237.     put "a tunnel leading east" into field 3
  238.     put false into examFlag
  239.   else
  240.     put "east" into direction
  241.     send move to card id cardID
  242.   end if
  243. end mouseUp
  244.  
  245.  
  246.  
  247. -- part 41 (button)
  248. -- low flags: 00
  249. -- high flags: 0000
  250. -- rect: left=154 top=59 right=101 bottom=186
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 0 / 0
  253. -- text alignment: 1
  254. -- font id: 0
  255. -- text size: 12
  256. -- style flags: 0
  257. -- line height: 16
  258. -- part name: 
  259. ----- HyperTalk script -----
  260. on mouseUp
  261.   global examFlag,direction,cardID,sDoorOpen,demonDead,takeFlag
  262.   if examFlag then
  263.     put "A barred door leading south into the great chamber." into field 3
  264.     if sDoorOpen
  265.     then put "  The door is unlocked!" after field 3
  266.   else put "  The door is locked!" after field 3
  267.   put false into examFlag
  268. else
  269.   if takeFlag then
  270.     put "You can't take the door." into field 3
  271.     put false into takeFlag
  272.   else
  273.     put "south" into direction
  274.     send move to card id cardID
  275.   end if
  276. end if
  277. end mouseUp
  278.  
  279.  
  280.  
  281. -- part 42 (button)
  282. -- low flags: 00
  283. -- high flags: 0000
  284. -- rect: left=185 top=172 right=218 bottom=250
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 1
  288. -- font id: 0
  289. -- text size: 12
  290. -- style flags: 0
  291. -- line height: 16
  292. -- part name: 
  293. ----- HyperTalk script -----
  294. on mouseUp
  295.   global examFlag,takeFlag,direction,cardID
  296.   if takeFlag then
  297.     put "Yeech!  You don't want demon slime on a granite block.  It's not even tasty stuff." into field 3
  298.     put false into takeFlag
  299.     exit mouseUp
  300.   end if
  301.   put "Demon slime on a granite block.  Pretty disgusting." into field 3
  302.   put false into examFlag
  303. end mouseUp
  304.  
  305.  
  306.  
  307. -- part contents for background part 25
  308. ----- text -----
  309. Treasure Room
  310. (looking south)
  311.  
  312. -- part contents for background part 24
  313. ----- text -----
  314. You are in the treasure room.  Exits are south and east:  Both doorways have doors made of massive iron bars.  There is a patch of black demon slime here.
  315.  
  316.  
  317. -- part contents for background part 36
  318. ----- text -----
  319. 1